package com.xian.im.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

/**
 * @program: xian-code
 * @description:
 * @author: liru.xian
 * @create: 2020-12-31 10:01
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = "thread-pool")
public class AsyncProperties implements Serializable {

    public Integer corePoolSize = Runtime.getRuntime().availableProcessors();

    private Integer maxPoolSize = Integer.MAX_VALUE;

    private Integer keepAliveSeconds = 60;

    private Integer queueCapacity = Integer.MAX_VALUE;

    private String threadNamePrefix;
}
